home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / dos / diverses / him / wn.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-12-01  |  6.4 KB  |  211 lines

  1. #ifndef HIMWNH
  2. #define HIMWNH 1
  3.  
  4. #ifdef AUTODOC
  5.  
  6. Include File: wn.h
  7.  
  8. Description: 
  9.  
  10. Include file for HIM Window Manager module.
  11.  
  12. #endif
  13. /*
  14.  *
  15.  *   Copyright 1988  Allsoft (tm)
  16.  *   100 Calle Playa Del Sol NE
  17.  *   Albuquerque, NM  87109
  18.  *
  19.  *   ALL RIGHTS RESERVED.
  20.  *
  21.  *   Unauthorized distribution, adaptation or use may be 
  22.  *   subject to civil and criminal penalties.
  23.  *
  24.  */
  25. /********** Filled by Polytron Version Control System **********
  26.  
  27. $Author:   james borders  $
  28.  
  29. $Date:   07 May 1988 16:19:40  $
  30.  
  31. $Revision:   1.0  $
  32.  
  33. $Log:   D:/C/FMLIB/WN/VCS/WN.H  $
  34.    
  35.       Rev 1.0   07 May 1988 16:19:40   james borders
  36.    Initial revision.
  37.  
  38. ****************************************************************/
  39.  
  40. /* Window Manager Constants */
  41.  
  42. /* Colors */
  43.  
  44. #define WNBLACK         0
  45. #define WNBLUE          1
  46. #define WNGREEN         2
  47. #define WNCYAN          3
  48. #define WNRED           4
  49. #define WNMAGENTA       5
  50. #define WNBROWN         6
  51. #define WNGRAY          7
  52. #define WNDGRAY         8
  53. #define WNLBLUE         9
  54. #define WNLGREEN        10
  55. #define WNLCYAN         11
  56. #define WNLRED          12
  57. #define WNLMAGENTA      13
  58. #define WNYELLOW        14
  59. #define WNWHITE         15
  60.  
  61. #define WNBLINK         128 /* OR with attribute to cause blinking */
  62.  
  63. /* mono highlight attributes */
  64.  
  65. #define WNNORMAL        0x07
  66. #define WNREVERSE       0x70
  67. #define WNUNDERLINE     0x47
  68.  
  69. /* Cursor types */
  70.  
  71. #define WNNOCURSOR      0
  72. #define WNUNDCURSOR     1
  73. #define WNSOLCURSOR     2
  74.  
  75. /* wnscroll directions */
  76.  
  77. #define WUP             0
  78. #define WDOWN           1
  79.  
  80. /* error constants */
  81.  
  82. #define WNOK         0          /* no error */
  83. #define WNMAERROR   -1          /* memory allocation error */
  84. #define WNFWERROR   -2          /* file write error */
  85. #define WNBADWIN    -3          /* bad window number */
  86. #define WNFRERROR   -4          /* file read error */
  87. #define WNWTBERROR  -5          /* window dimension(s) to big for screen */
  88. #define WNBVMERROR  -6          /* unsupported video mode seen in wninit() */
  89. #define WNPORERROR  -7          /* parameter other than wnum out of range */
  90. #define WNDTBERROR  -8          /* data to big for len in wninput() */
  91.  
  92. /* Use this with wneditstring() if no action routine wanted */
  93.  
  94. #define WNINULL      (int (*)())NULL
  95. #define WNACTIONNULL (int (*)())NULL
  96.  
  97.  
  98. /* data input types for wninput function */
  99.  
  100. #define WNCHAR          0x0001
  101. #define WNCHARSTR       0x0002
  102. #define WNINT           0x0003
  103. #define WNUINT          0x0004
  104. #define WNLINT          0x0005
  105. #define WNULINT         0x0006
  106. #define WNFLOAT         0x0007
  107. #define WNDOUBLE        0x0008
  108.  
  109. /* OR these with the above to control how display and entry is handled */
  110.  
  111. #define WNDPTRDISPLAY     0x0010
  112. #define WNDISPLAYONLY     0x0020
  113. #define WNWIPE            0x0040
  114. #define WNCRCHOP          0x0080
  115. #define WNNOECHO          0x0100
  116. #define WNNOTRIM          0x0200
  117.  
  118. /* wninput return values */
  119.  
  120. #define WNCR            1
  121. #define WNESC           2
  122.  
  123. /* this can also be passed to action routine as well as 2 above */
  124.  
  125. #define WNBADCHAR       3
  126.  
  127. /* don't touch these */
  128.  
  129. #define WNDTYPEMASK     0x000f
  130.  
  131. /* function declarations */
  132.  
  133. /*global*/  int wnscwnum(int);
  134. /*global*/  int wnsize(int ,int ,int );
  135. /*global*/  int wnswcolor(int ,int ,int );
  136. /*global*/  int wnswbcolor(int ,int ,int );
  137. /*global*/  int wnswtbc(int ,int ,int );
  138. /*global*/  int wnswcmode(int ,int );
  139. /*global*/  int wnswwwrap(int ,int );
  140. /*global*/  int wnswscroll(int ,int );
  141. /*global*/  int wnswbchars(int ,int ,int ,int ,int ,int ,int ,int ,int ,int ,int ,int );
  142. /*global*/  void wnscparms(int, int, int,int, int, int, int, int, int, int, int, int, int, int); 
  143. /*global*/  int wngcwnum(void);
  144. /*global*/  int wngwrow(int );
  145. /*global*/  int wngwcol(int );
  146. /*global*/  int wngwwidth(int );
  147. /*global*/  int wngwheight(int );
  148. /*global*/  int wngwbc(int );
  149. /*global*/  int wngwfc(int );
  150. /*global*/  int wngwbbc(int );
  151. /*global*/  int wngwbfc(int );
  152. /*global*/  int wngwtbc(int );
  153. /*global*/  int wngwtfc(int );
  154. /*global*/  int wngwcrow(int );
  155. /*global*/  int wngwccol(int );
  156. /*global*/  int wngwcmode(int );
  157. /*global*/  int wngwwwrap(int );
  158. /*global*/  int wngwscroll(int );
  159. /*global*/  int wngwbchars(int ,char *,char *,char *,char *,char *,char *,char *,char *,char *,char *,char *);
  160. /*global*/  void wngcparms(int *, int *, int *, int *, int *, int *, int *, int *, int *, int *, int *, int *, int *, int *); 
  161. /*global*/  int wngsrows(void);
  162. /*global*/  int wngscols(void);
  163. /*global*/  int wninit(int ,int ,char *,unsigned int ,char *(*)(),void (*)());
  164. /*global*/  int wncreate(int ,int ,int ,int ,int ,int ,int ,int );
  165. /*global*/  int wndestroy(int );
  166. /*global*/  int wnfill(int ,int );
  167. /*global*/  int wncls(int );
  168. /*global*/  int wrestore(void);
  169. /*global*/  int wsaverestoretofile(int ,int ,int ,int ,long ,int );
  170. /*global*/  void wregensave(int ,int ,int ,int ,unsigned int far *);
  171. /*global*/  void wregenrestore(int ,int ,int ,int ,unsigned int far *);
  172. /*global*/  int writeread(int ,char *,int ,int );
  173. /*global*/  int wnbldwatt(int );
  174. /*global*/  int wnbldnatt(int ,int ,int );
  175. /*global*/  int wnbldhatt(int ,int ,int );
  176. /*global*/  int wnghmatt(void);
  177. /*global*/  int wnshmatt(int );
  178. /*global*/  void wdrawborder(void);
  179. /*global*/  void wdrawside(int );
  180. /*global*/  int wnumcheck(int );
  181. /*global*/  int vpgvmode(void);
  182. /*global*/  void vpsvmode(int );
  183. /*global*/  void vpgcpos(int *,int *);
  184. /*global*/  void vpscpos(int ,int );
  185. /*global*/  int vpgtcols(void);
  186. /*global*/  void vpgcstyle(int *,int *);
  187. /*global*/  void vpscstyle(int ,int );
  188. /*global*/  void vpscmode(int );
  189. /*global*/  int wnmove(int ,int ,int );
  190. /*global*/  int wnmovechar(int ,int ,int );
  191. /*global*/  int wnmoves(int ,int ,int ,int );
  192. /*global*/  int wnscroll(int ,int ,int ,int );
  193. /*global*/  int wndline(int );
  194. /*global*/  int wndeol(int );
  195. /*global*/  int wndeow(int );
  196. /*global*/  int wnbs(int );
  197. /*global*/  int wninsline(int );
  198. /*global*/  int wninschar(int );
  199. /*global*/  int wnputncolor(int ,int ,int ,int );
  200. /*global*/  int wnlputncolor(int ,int ,int ,int ,int ,int );
  201. /*global*/  int wnputhcolor(int ,int ,int ,int );
  202. /*global*/  int wnlputhcolor(int ,int ,int ,int ,int ,int );
  203. /*global*/  int wtoright(void);
  204. /*global*/  int wtobottom(void);
  205. /*global*/  int wnttitle(int ,char *);
  206. /*global*/  int wnbtitle(int ,char *);
  207. /*global*/  int wnltitle(int ,char *);
  208. /*global*/  int wnrtitle(int ,char *);
  209.  
  210. #endif /* HIMWNH */
  211.